home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / Apple Game Sprockets / InputSprocket / Headers and Libraries / InputSprocketDefer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-17  |  1.4 KB  |  48 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        InputSprocketDefer.h
  3.  
  4.      Contains:    Interfaces for InputSprocket drivers to insure that their ADB
  5.                 service routines are called at virtual memeory (VM) paging safe
  6.                 times.
  7.                 Requires the software link with InputSprocketDeferLib
  8.  
  9.      Version:    Technology:    InputSprocket 1.3
  10.                  Release:    InputSprocket 1.3
  11.  
  12.      Copyright:    © 1986-1998, 1995-1997 by Apple Computer, Inc., all rights reserved
  13.  
  14.      Bugs?:        Please include the the file and version information (from above) with
  15.                  the problem description.  Developers belonging to one of the Apple
  16.                  developer programs can submit bug reports to:
  17.  
  18.                      devsupport@apple.com
  19.  
  20. */
  21.  
  22. #pragma once
  23.  
  24. #ifndef __INPUTSPROCKETDEFER__
  25. #define __INPUTSPROCKETDEFER__
  26.  
  27. #include <ConditionalMacros.h>
  28. #include <DeskBus.h>
  29.  
  30. typedef UInt32            ISpADBDeferRef;
  31.  
  32. typedef CALLBACK_API_C( void , ISpADBDeferCallbackProcPtr )(UInt8 adbCommand, void * adbBuffer, UInt32 refcon);
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. OSErr ISpAllocateADBDeferBlock(ISpADBDeferRef *createBlock);
  38. OSErr ISpDisposeADBDeferBlock(ISpADBDeferRef disposeBlock);
  39. OSErr ISpInstallADBDefer(ISpADBDeferRef refBlock, ADBAddress reqAddress,
  40.                          ISpADBDeferCallbackProcPtr installProc, UInt32 clientRefCon,
  41.                          ADBServiceRoutineUPP *prevRoutine, Ptr *prevDataArea);
  42. OSErr ISpRemoveADBDefer(ISpADBDeferRef refBlock);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47. #endif
  48.